package com.atguigu.wordcount.partition;

import org.apache.hadoop.io.LongWritable;
import org.apache.hadoop.io.NullWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Mapper;

import java.io.IOException;

/**
 * @ClassName PhoneMapper
 * @DeScription PhoneMapper
 * @Author 剧情再美终是戏
 * @Date 2019/11/19 17:20
 * @Version 1.0
 **/
public class PhoneMapper extends Mapper<LongWritable, Text, Text, NullWritable> {

    @Override
    protected void map(LongWritable key, Text value, Context context) throws IOException, InterruptedException {
        context.write(value, NullWritable.get());
    }
}
